import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default function createRouter(){
    return new Router({
        mode: 'history',
        routes: [
            {
                path: '/',
                component: () => import('@/views/Home')
            },
            {
                path: '/detail',
                component: () => import('@/views/Detail')
            }
        ]
    })
}